home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: ncrgw2.ncr.com!ncrhub6!daynews!ranger!news
- From: Jeff Miko <jeffmiko@erinet.com>
- Subject: HELP!! Linker Error Driving Me Bats - LNK2001 Unresolved
- X-Nntp-Posting-Host: 192.127.53.180
- Content-Type: text/plain; charset=us-ascii
- Message-ID: <DMu5uA.Jyu@ranger.daytonoh.attgis.com>
- Sender: news@ranger.daytonoh.attgis.com (News Administrative Login)
- Content-Transfer-Encoding: 7bit
- Organization: AT&T Global Information Solutions
- Mime-Version: 1.0
- Date: Thu, 15 Feb 1996 21:18:10 GMT
- X-Mailer: Mozilla 1.22 (Windows; U; 32bit)
-
- The error I'm getting is:
-
- error LNK2001: unresolved external symbol
- _WNetCancelConnectionA@8
-
-
-
- I'm trying to call the function WNetCancelConnection and I'm
- getting this frustrating error. I'm using MS Visual C++ 4.0
-
- In my main header "netman.h" file I have:
-
- #ifndef WINNETWKH
- #define WINNETWKH
- #include <winnetwk.h>
- #endif
-
- In my class header "netclass.h" file I have:
-
- unsigned long WINAPI __stdcall WNetCancelConnection( LPCSTR
- lpName, BOOL fForce);
-
- In my class cpp file "netclass.cpp" I have:
-
- DWORD dwResult;
- dwResult = WNetCancelConnection("F:", TRUE);
-
-
- Can anybody help me. I know I'm doing a "newbie" thing
- here, but I've been trying to figure it out for some time.
-
- Thanks, Jeff
-
-
-
-
-